package com.sunshine.ssm.test.extendsTest;

/**
 * @Description:
 * @author: Hong.Wei
 * @Date: 2017/2/10 15:44
 */
public class A {
    int a = 10;

    void a() {
        System.out.println(a);
        System.out.println(getClass().getName());
    }
}

class B extends A {
    int a = 20;

    void a() {
        System.out.println(a);
        System.out.println(getClass().getName());
        System.out.println(this.a);
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        B b = new B();
        b.a();
    }
}
